package com.superme.filemanager.controller;

import com.superme.common.beans.PageRequest;
import com.superme.common.beans.PageResponse;
import com.superme.filemanager.pojo.entity.PhotoUrl;
import com.superme.filemanager.service.PhotoUrlService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("photo")
public class PhotoUrlController {

    @Resource
    private PhotoUrlService photoUrlService;

    @PostMapping("getPage")
    public PageResponse<PhotoUrl> getPage(PageRequest page) {
        return photoUrlService.getPage(page);
    }

}
